<template>
  <div class="SwiftCode">
    <div class="theme">
      <el-button
        class="banner-button"
        style="margin-left: 8%"
        size="large"
        type="primary"
        round
        @click="goUrl('https://SwiftCode.geovisearth.com')"
      >
        立即体验
      </el-button>
    </div>
    <div class="section">
      <div class="wrapper">
        <img src="@/assets/img/Swift Code.png" alt="" />
      </div>
    </div>
    <div class="section">
      <div class="wrapper">
        <img src="@/assets/img/image 2.png" alt="" style="height: 430px" />
        <div>
          <img src="@/assets/img/资源 42@3x.png" alt="" style="width: 350px" />
          <img
            src="@/assets/img/资源 43@3x.png"
            alt=""
            style="width: 350px; margin-left: 1%"
          />
          <img src="@/assets/img/资源 44@3x.png" alt="" style="width: 350px" />
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
const goUrl = (url) => {
  window.open(url);
};
</script>

<style lang="scss" scope>
.SwiftCode {
  margin-top: 60px;

  .theme {
    height: 626px;
    width: 100%;
    background: #f7f7f7;
    background-image: url("@/assets/img/banner4.png");
    background-size: 100% 100%;

    .banner-button {
      top: 45%;
      left: 5%;
      position: absolute;
      width: 7%;
    }

    .wrapper {
      margin: 0 auto;
      max-width: 1232px;
      padding: 167px 16px 0;
      position: relative;
      width: 100%;

      .title {
        color: #333;
        display: inline-block;
        font-size: 42px;
        font-weight: 700;
        margin-bottom: 12px;
        position: relative;
      }

      .desc {
        color: #333;
        font-size: 20px;
        font-weight: 400;
        line-height: 36px;
        margin-bottom: 40px;
        max-width: 680px;
      }
    }
  }

  .section {
    width: 100%;
    background: #fff;
    padding-bottom: 100px;
    background-size: 100% 100%;

    .wrapper {
      height: 100%;
      margin: 0 auto;
      max-width: 80%;
      padding: 80px 16px 0;
      display: flex;

      .section-title {
        margin-bottom: 50px;
        padding: 0 10px;
        color: #000;
        font-size: 32px;
        font-weight: 500;
        margin-bottom: 60px;
        text-align: center;
      }

      .section-content {
        zoom: 1;
        box-sizing: border-box;
        display: block;
        height: auto;
        margin-left: 0;
        margin-right: 0;
        position: relative;
        background-color: #fff;
        box-shadow: 0 20px 60px 0 rgba(0, 0, 0, 0.1);
        padding: 35px;
        width: 22%;
        margin: 20px;
        border-radius: 16px;

        .sub-title {
          color: #252528;
          font-size: 20px;
          font-weight: 500;
          margin: 30px 0 20px;
        }

        .sub-desc {
          color: #666666;
          font-size: 16px;
          line-height: 24px;
          margin-bottom: 30px;
          white-space: pre-line;
        }
      }

      .list-wrapper {
        display: flex;
        justify-content: center;
        margin: 0 -16px;

        .list-item {
          border: 1px solid #e7e7e7;
          border-radius: 4px;
          cursor: pointer;
          display: flex;
          margin: 0 16px 16px;
          min-height: 30px;
          padding: 30px;

          .content {
            flex: 1;

            .title {
              align-items: center;
              display: flex;
              justify-content: space-between;
            }

            .title:before {
              background: #0074ff;
              content: "";
              height: 15px;
              left: -10px;
              position: relative;
              top: 10px;
              transform: translateY(-50%);
              width: 5px;
            }
          }
        }

        .list-item:hover {
          box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.1);
        }
      }
    }
  }

  .anchor {
    position: fixed;
    width: 6%;
    top: 25%;
    left: 5%;
    // transform: translateX(-860px);
    padding: 5px;
    border-radius: 4px;
    background-color: rgb(255, 255, 255);
    box-sizing: border-box;
    box-shadow: 0 5px 16px 0 rgba(0, 0, 0, 0.1);
  }
}
</style>
